package com.cuit.controller;

import com.cuit.service.OrgService;
import com.cuit.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author SYE
 * @date 2023/7/27 16:43
 * @desciption:
 */
@RestController
@RequestMapping("/api")
@Api(value = "单位controller")
public class OrgController {

    @Autowired
    private OrgService orgService;

    @GetMapping("/getallorg")
    @ApiOperation(value = "获得全部单位")
    public Result getAllOrg(){
        return orgService.getAllOrg();
    }
}
